﻿using System;
using System.Collections.Generic;

namespace BenCaoXuan.Infrastructure.EFCore.MySql;

/// <summary>
/// 订单表
/// </summary>
public partial class Order
{
    /// <summary>
    /// 订单ID，主键
    /// </summary>
    public string OId { get; set; } = null!;

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime? OCreateTime { get; set; }

    /// <summary>
    /// 客户ID，关联客户表
    /// </summary>
    public string? OCustomerId { get; set; }

    /// <summary>
    /// 客户名称
    /// </summary>
    public string? OCustomerName { get; set; }

    /// <summary>
    /// 客户电话
    /// </summary>
    public string? OCustomerPhone { get; set; }

    /// <summary>
    /// 理疗师id
    /// </summary>
    public string? OEmployeeArtId { get; set; }

    /// <summary>
    /// 前台操作人员id
    /// </summary>
    public string? OEmployeeFrontId { get; set; }

    /// <summary>
    /// 是否是预约转订单,0-否1-是
    /// </summary>
    public int? OIsAppointment { get; set; }

    /// <summary>
    /// 订单完成时间
    /// </summary>
    public DateTime? OCompleteTime { get; set; }

    /// <summary>
    /// 订单状态：0-进行中，1-已完成
    /// </summary>
    public int? OOrderStatus { get; set; }

    /// <summary>
    /// 支付状态：0-待支付，1-已支付
    /// </summary>
    public int? OPayStatus { get; set; }

    /// <summary>
    /// 支付方式：关联字典表的支付类型id
    /// </summary>
    public string? OPayType { get; set; }

    /// <summary>
    /// 房间id
    /// </summary>
    public string? ORoomId { get; set; }

    /// <summary>
    /// 订单总金额
    /// </summary>
    public decimal? OTotalAmount { get; set; }
}
